﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LPN.aspx.cs" Inherits="WMS6.Web.Inventory.LPN" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>LPN</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newReceiving()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "LPN.aspx?from=" + escape(from);
            return false;
        }

        function showAction() 
        {
            var pos = getElementPos("btnAction");
            document.getElementById("actionDiv").style.top = pos.y + 17;
            document.getElementById("actionDiv").style.left = pos.x;
            document.getElementById("hiddenFlag").value = '1';
        }

        function hiddenDiv() 
        {
            var flag = document.getElementById("hiddenFlag").value
            if (flag == "1") {
                document.getElementById("actionDiv").style.display = "block";
                document.getElementById("hiddenFlag").value = '0';
            }
            else {
                document.getElementById("actionDiv").style.display = "none";
            }
        }

        //打印lpn标签
        function popPrinLpnLabel() 
        {
            var lpnIDs = "'" + document.getElementById("txtLpnID").value + "'";
            //window.open('../Common/PrintReport.aspx?rtype=PICKLPNLABEL&lpnIDS=' + escape(lpnIDs), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
            window.open('../Common/PrintReport.aspx?rtype=PICKLPNLABEL', 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
    </script>

</head>
<body>
    <form id="F5077" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
       <%-- <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>--%>
                <div id="div_top">
                    <table>
                        <tr>
                            <td valign="bottom">
                                <asp:Label ID="lblLpn" runat="server" CssClass="label_header" Text="LPN" 
                                    meta:resourcekey="lblLpn"></asp:Label>
                            </td>
                            <td>
                                <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnGoBack%>"
                                    AccessKey="b" OnClick="btnGoBack_Click"  />
                            </td>
                            <td>
                                <asp:Button ID="btnNew" runat="server"  Enabled="False" CssClass="button"  Visible="false"
                                    Text="<%$Resources:ButtonResource,btnNew%>" AccessKey="n" />
                            </td>
                            <td>
                                <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnSave%>"  Visible="false"
                                    AccessKey="s"  />
                            </td>
                             <td>
                                <asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnDelete%>"   OnClick="btnDelete_Click"
                                    AccessKey="s"  />
                            </td>
                            <td>
                                <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnRefresh%>"
                                    AccessKey="e" />
                            </td>
                            <td>
                                <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                                    class="button" onclick="showAction();" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" ></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLpnID" runat="server" CssClass="label" Text="LPN" 
                                        meta:resourcekey="lblLpnID"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                        meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtLpnID" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtLpnID"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtStatus" runat="server" CssClass="textbox" 
                                        Enabled="False" meta:resourcekey="txtStatus"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblQty" runat="server" CssClass="label" Text="数量" 
                                        meta:resourcekey="lblQty"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblPackID" runat="server" CssClass="label" Text="包装" 
                                        meta:resourcekey="lblPackID"></asp:Label>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtQty" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtQty"></asp:TextBox>
                                </td>
                                <td >
                                    <asp:TextBox ID="txtPackID" runat="server" CssClass="textbox"  Enabled="false"
                                       meta:resourcekey="txtPackID"></asp:TextBox>
                                </td>
                                  <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblDocID" runat="server" CssClass="label" Text="订单号" 
                                        meta:resourcekey="lblAdJustMentDate"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblDocType" runat="server" CssClass="label" Text="订单类型" 
                                        meta:resourcekey="lblAdJustMentDate"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtDocID" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtDocID"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtDocType" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtDocType"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" 
                                        meta:resourcekey="lblOwnerID"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品代码" 
                                        meta:resourcekey="lblSkuID"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtOwnerID"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtSkuID"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="360" colspan="2">
                                    <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="货品描述" 
                                        meta:resourcekey="lblDescr"></asp:Label>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="360" colspan="2">
                                    <asp:TextBox ID="txtDescr" runat="server" CssClass="largetextbox"  Enabled="false"
                                        meta:resourcekey="txtDescr"></asp:TextBox>                                    
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLotAttr01" runat="server" CssClass="label" Text="批次属性01" 
                                        meta:resourcekey="lblLotAttr01"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblLotAttr02" runat="server" CssClass="label" Text="批次属性02" 
                                        meta:resourcekey="lblLotAttr02"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtLotAttr01" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtLotAttr01"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtLotAttr02" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtLotAttr02"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLotAttr03" runat="server" CssClass="label" Text="批次属性03" 
                                        meta:resourcekey="lblLotAttr03"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblLotAttr04" runat="server" CssClass="label" Text="批次属性04" 
                                        meta:resourcekey="lblLotAttr04"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtLotAttr03" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtLotAttr03"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtLotAttr04" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtLotAttr04"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLotAttr05" runat="server" CssClass="label" Text="批次属性05" 
                                        meta:resourcekey="lblLotAttr05"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblLotAttr06" runat="server" CssClass="label" Text="批次属性06" 
                                        meta:resourcekey="lblLotAttr06"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtLotAttr05" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtLotAttr05"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtLotAttr06" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtLotAttr06"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLotAttr07" runat="server" CssClass="label" Text="批次属性07" 
                                        meta:resourcekey="lblLotAttr07"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblLotAttr08" runat="server" CssClass="label" Text="批次属性08" 
                                        meta:resourcekey="lblLotAttr08"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtLotAttr07" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtLotAttr07"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtLotAttr08" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtLotAttr08"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblLotAttr09" runat="server" CssClass="label" Text="批次属性09" 
                                        meta:resourcekey="lblLotAttr09"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblLotAttr10" runat="server" CssClass="label" Text="批次属性10" 
                                        meta:resourcekey="lblLotAttr10"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtLotAttr09" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtLotAttr09"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtLotAttr10" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtLotAttr10"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblProduceDate" runat="server" CssClass="label" Text="生产日期" 
                                        meta:resourcekey="lblProduceDate"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblExpireDate" runat="server" CssClass="label" Text="失效日期" 
                                        meta:resourcekey="lblExpireDate"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtProduceDate" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtProduceDate"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtExpireDate" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtExpireDate"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblExternalLot" runat="server" CssClass="label" Text="外部批次号" 
                                        meta:resourcekey="lblExternalLot"></asp:Label>
                                </td>
                                    <td width="180">
                                      <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="收货日期" 
                                        meta:resourcekey="lblReceiptDate"></asp:Label>
                                </td>
                                    <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtExternalLot" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtExternalLot"></asp:TextBox>                                    
                                </td>
                                   <td width="180">
                                   <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox"   Enabled="false"
                                        meta:resourcekey="txtReceiptDate"></asp:TextBox>      
                                </td>
                                   <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" 
                                        meta:resourcekey="lblVendorID"></asp:Label>
                                </td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td  width="180">
                                    <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox"  Enabled="false"
                                        meta:resourcekey="txtVendorID"></asp:TextBox>                                    
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                               <tr style="height: 10px;">
                                <td width="180">
                                    <asp:CheckBox ID="chkIsActive" runat="server" Checked="True"  Enabled="false"
                                        CssClass="checkbox" meta:resourcekey="chkIsActive" Text="启用" />
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                        </table>
                    </div>                 
                </div>
                  <input id="hdnLpnID" runat="server" type="hidden" />
                     <input id="hdnFrom" runat="server" type="hidden" />
                            <input id="hdnFlag" runat="server" type="hidden" />
                                <input id="hidCheck" runat="server" type="hidden" />
          <%--  </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>--%>
    </div>
    <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintLpnLabel" runat="server">
                    <asp:LinkButton ID="lnkbtnPrintLpnLabel" runat="server" Text="打印LPN标签" OnClick="lnkbtnPrintLpnLabel_Click"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>  
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <input type="hidden" id="hiddenFlag" />
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();		 
		//-->
</script>